import request from '@/utils/request'

// 查询课程小节列表
export function listCourseSection(query) {
  return request({
    url: '/project/courseSection/list',
    method: 'get',
    params: query
  })
}

// 查询课程小节详细
export function getCourseSection(id) {
  return request({
    url: '/project/courseSection/' + id,
    method: 'get'
  })
}

// 新增课程小节
export function addCourseSection(data) {
  return request({
    url: '/project/courseSection',
    method: 'post',
    data: data
  })
}

// 修改课程小节
export function updateCourseSection(data) {
  return request({
    url: '/project/courseSection',
    method: 'put',
    data: data
  })
}

// 删除课程小节
export function delCourseSection(id) {
  return request({
    url: '/project/courseSection/' + id,
    method: 'delete'
  })
}
